package org.example.runningforum.mapper;

import org.example.runningforum.modle.Topic;

import java.util.List;

// TopicMapper.java
public interface ITopicMapper {
    // 创建话题
    int insertTopic(Topic topic);

    // 获取热门话题TOP10
    List<Topic> selectHotTopics();

    // 增加话题点击量
    int increaseTopicClick(Long topicId);
}